package com.taiyi.crm.service;

import com.taiyi.crm.pojo.entity.User;
import com.taiyi.crm.util.LayUITableResult;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

public interface IUserService {

    LayUITableResult selectByPage(Integer page, Integer limit, User user);

    void deleteById(Integer id);

    void deleteAll(String ids);

    void insert(User user, String roles);

    User selectByPrimaryKey(Integer userId);

    Map<String, Object> selectUserAndRoles(Integer userId);

    void update(User user, String roles);

    User login(String name, String password, HttpSession session);

    List<User> selectXiaoShouUser();

    void insert_register(User user);
}